import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const roleColumns = [
    {
        title: "名称",
        dataIndex: "name",
    },
    {
        title: "创建人",
        dataIndex: "createUser",
    },
    {
        align: 'center',
        title: "创建时间",
        dataIndex: "createTime",
        sorter: true,
    },
    {
        align: 'center',
        title: "状态",
        dataIndex: "status",
        scopedSlots: { customRender: "status" },
    }, 
    {
        align: 'center',
        width:'280px',
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];

export const addRole = (parameter) => post('api/sysRole/addRole', parameter)
export const deleteRole = (parameter) => post('api/sysRole/deleteRole', parameter)
export const updateRole = (parameter) => put('api/sysRole/updateRole', parameter)
export const queryRole = (parameter) => get('api/sysRole/queryRole', parameter)
export const getRole = (parameter) => get('api/sysRole/getRole', parameter)
export const queryRoleSelect = (parameter) => get('api/sysRole/queryRoleSelect', parameter)
